package com.starwish.starwishblog.mapper;

import com.starwish.starwishblog.entity.OperationLog;
import com.starwish.starwishblog.vo.ManagerLoginVo;
import com.starwish.starwishblog.vo.ManagerOperationVo;
import com.starwish.starwishblog.vo.UserLoginVo;
import com.starwish.starwishblog.vo.UserOperationVo;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface OperationLogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OperationLog record);

    OperationLog selectByPrimaryKey(Integer id);

    List<OperationLog> selectAll();

    int updateByPrimaryKey(OperationLog record);

    List<ManagerOperationVo> selectManagerOperationLog(String name);

    List<ManagerLoginVo> selectManagerLoginLog(String name);

    List<UserOperationVo> selectUserOperationLog(String name);

    List<UserLoginVo> selectUserLoginLog(String name);
}